<!DOCTYPE html>
<html lang='en'>
<head>
    <meta charset='UTF-8'>
    <meta name='viewport' content='width=device-width, initial-scale=1.0'>
    <title>Document</title>
    <script type='text/javascript' src='js/vue.js'></script>
</head>
<body>
    <div id='app'>
        {{msg}}
        <show></show>
        <show>
            <span>******************</span>
            <p>插槽页面内容一</p>
            <p>插槽页面内容二</p>
        </show>
        <show>
            <!-- //页面实际显示的顺序是按照模板的顺序，然后根据具名插槽渲染来的，并不是这里标签顺序来 -->
            <span>============</span><br>
            <span slot="aa">测试具名插槽一</span>
            <span>测试具名插槽二</span>

        </show>

    </div>
    <script type='text/javascript'>
        Vue.component('show',{
            template: `
            <div>
                <slot>插槽默认内容</slot>
                <slot name="aa">具名插槽默认内容</slot>
            </div>
            `,
        })
        var vm = new Vue({
            el: '#app',
            data: {
                msg: 'Hello Vue'
            }
        });
    </script>
</body>
</html>